﻿using Microsoft.EntityFrameworkCore;
using RBAC.Domain;
using RBAC.Repository.Interfae;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Repository.Impl
{
    public class UserRepository : BaseRepository<UserInfo>, IUserRepository
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="context"></param>
        public UserRepository(EFcoreContext context) : base(context)
        {
        }
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        public async Task<int> AddUser(UserInfo userInfo)
        {
            return await base.AddAsync(userInfo);
        }
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        public async Task<List<UserInfo>> GetUser()
        {
            return await base.GetAllAsync();
        }
     
    }
}
